using System;
using System.Runtime.InteropServices;

namespace EveSkillPocket
{
    public class Sound
    {
        public static int PlaySound(byte[] szSoundBytes)
        {
            return WCE_PlaySoundBytes(szSoundBytes, IntPtr.Zero, 4);
        }

        public static int PlaySound(string szSound)
        {
            return WCE_PlaySound(szSound, IntPtr.Zero, 0x20000);
        }

        [DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
        private static extern int WCE_PlaySound(string szSound, IntPtr hMod, int flags);
        [DllImport("CoreDll.DLL", EntryPoint = "PlaySound", SetLastError = true)]
        private static extern int WCE_PlaySoundBytes(byte[] szSound, IntPtr hMod, int flags);
    }
}
